<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>添加用户</title>
</head>
    <script src="/jquery/jquery-3.2.1.min.js"></script>
    <link rel="stylesheet" href="/layui/css/layui.css">
    <script src="/layui/layui.js"></script>
    <link rel="stylesheet" href="/css/authority/authority-addUser.css"/>
<body>
    <div class="bodyBox">
        <div class="layui-row">
            <div class="layui-col-md11">
                <div class="layui-card headerCenter">
                    <div class="layui-card-header backColor">
                        添加用户
                        <div class="btnRight" style="margin-bottom: 10px">
                            <button onclick="backOff()" type="button" class="layui-btn layui-btn layui-btn-sm">
                                <i class="layui-icon layui-icon-return"></i>
                                返回
                            </button>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div id="box">
            <form class="layui-form" action="" id="addProduct">
                <div class="layui-form-item">
                    <label class="layui-form-label">用户部门：</label>
                    <div class="layui-input-inline">
                        <input type="text" name="deptName"  id="classification" placeholder="部门" disabled autocomplete="off" class="layui-input">
                        <a class="flo" href="javascript:findDeptName()"><img src="/images/icon27.gif"/></a>
                    </div>
                </div>
                <div class="layui-form-item">
                    <span id="category" class="hide">您当前选择的部门是：</span>
                </div>
                <input type="text" name="deptId" class="layui-input hide">
                <div class="layui-form-item">
                    <label class="layui-form-label">用户名称：</label>
                    <div class="layui-input-inline">
                        <input type="text" name="trueName" placeholder="请输入姓名" required lay-verify="required" autocomplete="off" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">用户账号：</label>
                    <div class="layui-input-inline">
                        <input type="text" name="account" placeholder="请输入账号" required lay-verify="required" autocomplete="off" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">用户密码：</label>
                    <div class="layui-input-inline">
                        <input type="password" name="password" placeholder="请输入密码" required lay-verify="required" autocomplete="off" class="layui-input">
                    </div>
                </div>

                <div class="layui-form-item">
                    <div class="layui-upload">
                        <label class="layui-form-label"><button type="button"  class="layui-btn" id="test1">上传头像</button></label>
                        <input type="hidden" name="acatarUrl"/>
                        <div class="uploadHeadImage" id="showBtn">

                        </div>
                    </div>

                </div>


                <div class="layui-form-item layui-form-text">
                    <label class="layui-form-label">用户备注：</label>
                    <div class="layui-input-block">
                        <textarea name="remark" placeholder="请输入用户备注" class="layui-textarea"></textarea>
                    </div>
                </div>
                <div class="layui-form-item layui-form-text">
                    <label class="layui-form-label">个性签名：</label>
                    <div class="layui-input-block">
                        <textarea name="freestyle" placeholder="请输入个性签名" class="layui-textarea"></textarea>
                    </div>
                </div>

                <div class="layui-form-item">
                    <label class="layui-form-label">用户邮箱：</label>
                    <div class="layui-input-inline">
                        <input type="text" name="email" required placeholder="请输入邮箱" lay-verify="required" autocomplete="off" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item">
                    <laCbel class="layui-form-label">手机号：</laCbel>
                    <div class="layui-input-inline">
                        <input type="text" name="phone" required placeholder="请输入手机号" lay-verify="required" autocomplete="off" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">身份证号：</label>
                    <div class="layui-input-inline">
                        <input type="text" name="idCard" required placeholder="请输入身份证号" lay-verify="required" autocomplete="off" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">出生日期：</label>
                    <div class="layui-input-inline">
                        <input type="text" name="birthDate" id="birthDate" required placeholder="请选择出生日期" lay-verify="required" autocomplete="off" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">等级：</label>
                    <div class="layui-input-inline">
                        <input type="text" name="grade" required lay-verify="required" autocomplete="off" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">工资：</label>
                    <div class="layui-input-inline">
                        <input type="text" name="wages" required lay-verify="required" autocomplete="off" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">性别：</label>
                    <div class="layui-input-block">
                        <input type="radio" lay-filter="sex"  name="sex" value="男" title="男" checked>
                        <input type="radio" lay-filter="sex" name="sex" value="女" title="女">
                        <input type="hidden" value="2" id="sex" name="sex"/>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label>是否启用：</label>
                    <div class="layui-input-block">
                        <input type="radio" lay-filter="enabled" name="enabled" value="2" title="否" checked>
                        <input type="radio" lay-filter="enabled" name="enabled" value="1" title="是">
                        <input type="hidden" value="2" id="enabled" name="enabled"/>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">状态：</label>
                    <div class="layui-input-block">
                        <input type="radio" lay-filter="status" name="status" value="1" title="使用中" checked>
                        <input type="radio" lay-filter="status" name="status" value="2" title="已注销">
                        <input type="radio" lay-filter="status" name="status" value="3" title="冻结" >
                        <input type="radio" lay-filter="status" name="status" value="4" title="封停" >
                        <input type="hidden" value="2" id="status" name="status"/>
                    </div>
                </div>

                <div class="layui-form-item">
                    <div class="layui-input-block">
                        <button style="display: none" class="layui-btn" id="sub" lay-submit lay-filter="formDemo">完成，添加用户</button>
                        <button class="layui-btn" type="button" id="subUpload" >完成，添加用户</button>
                    </div>
                </div>
                <input type="hidden" name="createId"/>
                <input type="hidden" name="registerDate"/>
            </form>
        </div>
    </div>
    <script src="/js/authority/authority-addUser.js"></script>
</body>
</html>